﻿@using System.Web.UI.WebControls
@using RBS.Common
@model RBS.Core.Model.SYS_Navigation

@{
    ViewBag.Title = "NavCreate";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
 
<!--导航栏-->
<div class="location">
    <a href="manager_list.aspx" class="back"><i></i><span>返回列表页</span></a>
    <a href="../center.aspx" class="home"><i></i><span>首页</span></a>
    <i class="arrow"></i>
    <a href="manager_list.aspx"><span>管理员</span></a>
    <i class="arrow"></i>
    <span>编辑后台导航</span>
</div>
<div class="line10"></div>
<!--/导航栏-->

<!--内容-->
 
<div class="content-tab-wrap">
  <div id="floatHead" class="content-tab">
    <div class="content-tab-ul-wrap">
      <ul>
        <li><a href="javascript:;" onclick="tabs(this);" class="selected">后台导航信息</a></li>
      </ul>
    </div>
  </div>
</div>
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true) 

<div class="tab-content">
  <dl>
    <dt>上级导航</dt>
    <dd>
      <div class="rule-single-select"> 
          @Html.DropDownList("ddlParentId")
      </div>
    </dd>
  </dl>
  <dl>
    <dt>排序数字</dt>
      <dd>
          @Html.TextBox("sort_id","99",  new{@class="input small",datatype="n"}) 
          <span class="Validform_checktip">*数字，越小越向前</span>
      </dd>
  </dl>
  <dl>
    <dt>是否隐藏</dt>
    <dd>
        <div class="rule-single-checkbox">
            @Html.CheckBox("cbIsLock") 
        </div>
      <span class="Validform_checktip">*隐藏后不显示在界面导航菜单中。</span>
    </dd>
  </dl>
  <dl>
    <dt>调用别名</dt>
      <dd>
          @Html.TextBoxFor(model=>model.name,new{@class="input normal",ajaxurl= "../../tools/admin_ajax.ashx?action=navigation_validate", datatype=@"/^[a-zA-Z0-9\-\_]{2,50}$/", errormsg="请填写正确的ID", sucmsg=" "})
          <span class="Validform_checktip">权限控制名称，只允许字母、数字、下划线</span>
      </dd>
  </dl>
  <dl>
    <dt>导航标题</dt>
      <dd>
           @Html.TextBoxFor(model=>model.title,new{@class="input normal", datatype=@"*1-100", sucmsg=" "}) 
          <span class="Validform_checktip">*导航中文标题，100字符内</span>
      </dd>
  </dl>
  <dl>
    <dt>副标题</dt>
      <dd>
            @Html.TextBoxFor(model=>model.sub_title,new{@class="input normal", datatype=@"*0-100", sucmsg=" "}) 
          <span class="Validform_checktip">非必填，当导航拥有两个名称时使用</span>
      </dd>
  </dl>
  <dl>
    <dt>链接地址</dt>
      <dd>
           @Html.TextBoxFor(model=>model.link_url,new{@class="input normal", maxlength="255"}) 
          <span class="Validform_checktip">当前管理目录，有子导航不用填</span>
      </dd>
  </dl>
  <dl>
    <dt>备注说明</dt>
      <dd>
          @Html.TextAreaFor(mode => mode.remark, new { @class = "input" })
          <span class="Validform_checktip">非必填，可为空</span>
      </dd>
  </dl>
  <dl>
    <dt>权限资源  </dt>
    <dd>  
        <div class="rule-multi-porp">
            <span id="action_type">
               
                @foreach (KeyValuePair<string, string> kvp in Utils.ActionType())
                { 
                    
                        <input id="@kvp.Key" type="checkbox" name="@kvp.Key" value="@kvp.Key" />
                    <label for="@kvp.Key">@kvp.Value (@kvp.Key)</label>
                } 
            </span>
        </div>
    </dd>
  </dl>
</div>
<!--/内容-->
    <!--/内容-->

    <!--工具栏-->
    <div class="page-footer">
        <div class="btn-list">
            <input type="submit" value="提交保存" class="btn" />
            <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript: history.back(-1);" />
          
        </div>
        <div class="clear"></div>
    </div> 
}
 
 